package cn.com.dycc.sys_manage.dictionarysysmanagement.entity;

import java.io.Serializable;

public class DictionaryInfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2029845716279020467L;
	
	private String id;              //序号
	private String column_name;		//字段名
	private String key;             //名称     
	private String val;				//值
	private String tab_name; 		//表名
	
	public DictionaryInfo(){}

	public DictionaryInfo(String id, String column_name, String key, String val, String tab_name) {
		super();
		this.id = id;
		this.column_name = column_name;
		this.key = key;
		this.val = val;
		this.tab_name = tab_name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getColumn_name() {
		return column_name;
	}

	public void setColumn_name(String column_name) {
		this.column_name = column_name;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getVal() {
		return val;
	}

	public void setVal(String val) {
		this.val = val;
	}

	public String getTab_name() {
		return tab_name;
	}

	public void setTab_name(String tab_name) {
		this.tab_name = tab_name;
	}

	@Override
	public String toString() {
		return "DictionaryInfo [id=" + id + ", column_name=" + column_name + ", key=" + key + ", val=" + val
				+ ", tab_name=" + tab_name + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DictionaryInfo other = (DictionaryInfo) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}


}
